import {
  getSex,
  getBirthday,
  checkIdCardNo,
  getBirthPlace
} from '@/util/id_card.js'
/* 根据身份证获取成员信息*/
export function idCardNoVerification (str1, str2) {
  if (str1 == '1')
  {
    let idCardNo = checkIdCardNo(str2)
    if (!idCardNo)
    {
      return
    }
    let sex = getSex(idCardNo) //性别
    let bir = getBirthday(idCardNo) //出生日期
    let pla = getBirthPlace(idCardNo)//户籍
    return idCardNo + '|' + sex + '|' + bir + '|' + pla
  }
}